
import java.util.Date;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Yongke
 */
public class Chat {

    private String sender;
    private String receiver;
    private String content;
    private Date chattime;
    private String room;

    public Chat() {}
    public Chat(String username, String friend, String roomname, String chat)
    {
        sender = username;
        receiver = friend;
        content = chat;
        room = roomname;
        chattime = new Date();
    }

    public Chat(String username, String friend, String chat)
    {
        sender = username;
        receiver = friend;
        content = chat;
        chattime = new Date();
    }
    public String getSender(){return sender;}
    public String getReceiver(){return receiver;}
    public String getContent(){return content;}
    public String getRoom(){return room;}
    public Date getChatTime(){return chattime;}
}
